package model;

import java.io.Serializable;

public class Product implements Serializable {
    private int pid;
    private String pname;
    private double price;
    private int stock;
    private String type;
    private String imgURL;


    public Product(int pid, String pname, double price, int stock, String type, String imgURL) {
        this.pid = pid;
        this.pname = pname;
        this.price = price;
        this.stock = stock;
        this.type = type;
        this.imgURL = imgURL;
    }

    public Product() {}

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setImgURL(String imgURL) {
        this.imgURL = imgURL;
    }

    public String getImgURL() {
        return imgURL;
    }
}
